public partial class BaseWage : Form
    {
        public BaseWage()
        {
            InitializeComponent();
        }

        private void BaseWage_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'stafScheDataSet.BaseWage' table. You can move, or remove it, as needed.
            this.baseWageTableAdapter.Fill(this.stafScheDataSet.BaseWage);

        }

        private void btnSet_Click(object sender, EventArgs e)
        {
            this.Validate();
            this.baseWageBindingSource.EndEdit();
            this.baseWageTableAdapter.Update(this.stafScheDataSet.BaseWage);
        }

        private void BaseWage_Activated(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(uc.User))
            {
                bindingNavigator1.Enabled = false;
                btnSet.Enabled = false;
            }
            else
            {
                bindingNavigator1.Enabled = true;
                btnSet.Enabled = true;
            }
        }
